/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.suarte.core.service;

import com.suarte.core.Company;
import com.suarte.core.Contact;
import com.suarte.core.WorkOrder;
import com.suarte.core.WorkOrderDetail;
import java.util.Date;
import org.appfuse.service.GenericManager;

import java.util.List;
/**
 * @date   Dec 20, 2010
 * @author Ggutierrez
 */
public interface WorkOrderManager extends GenericManager<WorkOrder, Long> {
    List<WorkOrder> findByDescription(String description);
    void store(WorkOrder object);
    WorkOrder get(Long id);
    void deleteDetails(List<WorkOrderDetail> args);
    void approve(WorkOrder object);
    List<WorkOrder> findOrders(Long id, Long quotationId, String description, String user, Date date, Company company, Contact contact);
}
